<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" title="建德视播分享页">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title th:title="${title}"></title>
    <style>
        html,
        body,
        div,
        span,
        applet,
        object,
        iframe,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        p,
        blockquote,
        pre,
        a,
        abbr,
        acronym,
        address,
        big,
        cite,
        code,
        del,
        dfn,
        em,
        img,
        ins,
        kbd,
        q,
        s,
        samp,
        small,
        strike,
        strong,
        sub,
        sup,
        tt,
        var,
        b,
        u,
        i,
        center,
        dl,
        dt,
        dd,
        ol,
        ul,
        li,
        fieldset,
        form,
        label,
        legend,
        table,
        caption,
        tbody,
        tfoot,
        thead,
        tr,
        th,
        td,
        article,
        aside,
        canvas,
        details,
        embed,
        figure,
        figcaption,
        footer,
        header,
        menu,
        nav,
        output,
        ruby,
        section,
        summary,
        time,
        mark,
        audio,
        video,
        input {
            margin: 0;
            padding: 0;
            border: 0;
            font-size: .24rem;
            font-weight: normal;
            vertical-align: baseline;
            outline: none;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            /* line-height: 1; */
        }
        html,
        body {
            font-size: .24rem;
            color: #000;
            background-color: #000;
            letter-spacing: 0.5px;
            word-spacing: 1px;
            font-family: "PingFangSc Regular", Arial, sans-serif;
            margin: 0;
            -ms-text-size-adjust: 100%;
            -webkit-text-size-adjust: 100%;
            -webkit-font-smoothing: antialiased;
            /*抗锯齿渲染*/
            -moz-osx-font-smoothing: grayscale;
        }
        input,
        textarea {
            outline: none;
            line-height: normal;
        }
        input:focus,
        textarea:focus {
            border-color: #007fff;
        }
        input:focus+i {
            color: #007fff !important;
        }
        * {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
        }
        ul,
        li,
        ol {
            padding: 0;
            margin: 0;
            list-style: none;
        }
        body {
            max-width: 640px;
            min-width: 320px;
            margin: auto !important;
        }
    </style>
    <style>
        .header {
            width: 100%;
            height: 1rem;
            display: flex;
            justify-content: space-between;
        }
        .header-l {
            width: 60%;
            padding: .1rem .3rem;
            box-sizing: border-box;
            background-color: #222126;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }
        .off {
            color: #fff;
            font-size: .38rem;
            margin-right: .3rem;
        }
        .logo {
            width: .6rem;
            height: .6rem;
        }
        img {
            width: 100%;
        }
        .header-r {
            width: 40%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: .28rem;
            background-color: #CA312C;
        }
        video {
            width: 7.5rem;
            height: calc(100vh - 1.08rem);
        }
    </style>
    <script>
        //字体
        (function (doc, win) {
            var docEl = doc.documentElement,
                resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                recalc = function () {
                    var clientWidth = docEl.clientWidth < 640 ? docEl.clientWidth : 640;
                    if (!clientWidth) return;
                    docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
                };
            if (!doc.addEventListener) return;
            win.addEventListener(resizeEvt, recalc, false);
            doc.addEventListener('DOMContentLoaded', recalc, false);
        })(document, window);
    </script>
</head>

<body>
<header class="header">
    <div class="header-l">
        <!-- <div class="off">X</div> -->
        <div class="logo">
            <img src="http://shortvideo.healthplatform.xyz/201911281574909035868.jpg" alt="">
        </div>
    </div>
    <div class="header-r">立即下载</div>
</header>
<div class="main">
    <!--    <video src="http://shortvideo.healthplatform.xyz/201909161568618016375.mp4" controls="controls" autoplay loop>-->
    <video th:src="'http://shortvideo.healthplatform.xyz/'+${videoUrl}" controls="controls" autoplay loop>

        您的浏览器不支持 video 标签。
    </video>
</div>
<script>
    // let offNode = document.querySelector('.off');
    // let headerNode = document.querySelector('.header');
    let headerOpen = document.querySelector('.header-r');
    // offNode.addEventListener('click', function(){
    //     headerNode.style.display = 'none';
    // }, false);
    headerOpen.addEventListener('click', function(){
        var ua = navigator.userAgent
        if(ua.indexOf("Android") > 0){
            // window.location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.xunmeng.pinduoduo&channel=0002160650432d595942&fromcase=60001';  //  安卓跳转链接
            // window.location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.android.healthapp&channel=0002160650432d595942&fromcase=60001';  //  安卓跳转链接
            window.location.href = 'http://openbox.mobilem.360.cn/index/d/sid/4159591';  //  安卓跳转链接
        } else {
            // window.location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.xunmeng.pinduoduo&channel=0002160650432d595942&fromcase=60001';  //  IOS跳转链接
            // window.location.href = 'https://a.app.qq.com/o/simple.jsp?pkgname=com.android.healthapp&channel=0002160650432d595942&fromcase=60001';  //  IOS跳转链接
            window.location.href = 'itms-apps://itunes.apple.com/app/id1478610340';  //  IOS跳转链接
        }
    }, false);
</script>
</body>

</html>